<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ManagerFiltro
 *
 * @author jhonny
 */
class ManagerFiltroCurso extends ManagerFiltro{
    
    public function __construct($sfActions) {
        parent::__construct($sfActions);
    }
    
    protected function generateArrayParameters(sfWebRequest $request){
        $params = array();
        $params = parent::generateArrayParameters($request);
        if($request->isMethod('post')){
            $this->addElementPostParams($request,$params,UrlParameter::curso);
        }else{
            $this->addElementUrlParams($request,$params,UrlParameter::curso);
        }
        return $params;
    }
    /**
     *
     * @param type $params
     * @param type $strParams 
     */
    protected function generarFiltros($params,$strParams){
        $this->generarFiltroCurso($params, $strParams);
        parent::generarFiltros($params,$strParams);
    }
    
    private function generarFiltroCurso($params,$strParams){
        $this->logMessage("###########generarFiltroCurso params : $strParams",'info');
        $this->generarFiltroItem($params, $strParams, "Curso", UrlParameter::curso, "Listado", "Curso", "Curso", 3, "");
    }

}

?>
